package com.zhangzhan.gulimallproduct.feign;

import com.zhangzhan.gulimallproduct.feign.fallback.SeckillFeignFallback;
import com.zhangzhan.gulimallproduct.vos.SkuSeckillTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/7/5 12:13
 */
@FeignClient(value = "gulimall-seckill",fallback = SeckillFeignFallback.class)
public interface SeckillFeignService {

    @RequestMapping(value = "/getSkuCeckill",method = RequestMethod.GET)
    public List<SkuSeckillTo> getSkuCeckill(@RequestParam("skuId") Long skuId);
}
